package com.bltec.emergency.mapper;

import com.bltec.emergency.model.LogInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface LogInfoMapper {

    @Insert("insert into sys_log_info (ip_address,login_time,user_id) values(#{ipAddress},#{loginTime},#{userId})")
    boolean insert(LogInfo logInfo);
    @Select("select * from sys_log_info")
    List<LogInfo> getAllLOgInfo();
}
